﻿using Admin.NET.Core.Service;
using System.ComponentModel;

namespace Admin.Net.InformationPlatform.Entity
{
    /// <summary>
    /// 基础类
    /// </summary>
    public class EntityClassBase
    {
        /// <summary>
        /// 企业编号
        /// </summary>
        [DisplayName("企业编号")]
        public string Ent { get; set; }

        /// <summary>
        /// 据点
        /// </summary>
        [DisplayName("据点")]
        public string Site { get; set; } = string.Empty;
        /// <summary>
        /// 创建者Id
        /// </summary>
        public string? CreateUserId { get; set; }
        /// <summary>
        /// 创建者名称
        /// </summary>
        public string? CreateUserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 修改者Id
        /// </summary>
        public string? UpdateUserId { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }


    }
    /// <summary>
    /// Token用户
    /// </summary>
    public class TokenUser
    {
        /// <summary>
        /// 企业编号
        /// </summary>
        public string Ent { get; set; } = string.Empty;
        /// <summary>
        /// 据点信息
        /// </summary>
        public string Site { get; set; } = string.Empty;
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; } = string.Empty;
        /// <summary>
        /// 用户名称
        /// </summary>
        public string ID { get; set; } = string.Empty;
        /// <summary>
        /// 用户真实名称
        /// </summary>
        public string RealName { get; set; } = string.Empty;
        /// <summary>
        /// 语种 默认中文：zh_CN
        /// </summary>
        public string Languages { get; set; } = "zh_CN";
        /// <summary>
        /// 部门
        /// </summary>
        public string Department { get; set; } = string.Empty;
        /// <summary>
        /// 结算中心
        /// </summary>
        public string SettlementCenter { get; set; } = string.Empty;
        /// <summary>
        /// 工作站
        /// </summary>
        public string Workstation { get; set; } = string.Empty;
        /// <summary>
        /// 机构id
        /// </summary>
        public string OrgId { get; set; } = string.Empty;
        /// <summary>
        /// 全部数据角色
        /// </summary>
        public bool RoleList { get; set; } = false;
        /// <summary>
        /// 报备人手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 报备人邮箱
        /// </summary>
        public string Email { get; set; }


    }

    /// <summary>
    /// 任务基本信息
    /// </summary>
    public class TaskInfoBase : EntityClassBase
    {
        /// <summary>
        /// 任务id
        /// </summary>
        public string TaskId { get; set; } = string.Empty;

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 已检核数
        /// </summary>
        public int QuantityScanned { get; set; }
        /// <summary>
        /// 箱数
        /// </summary>
        public int BoxesCount { get; set; }
        /// <summary>
        /// 已扫描箱数
        /// </summary>
        public int BoxesScannedCount { get; set; }
    }
}
